package com.hdu.dwh.pojos.cube_pojos;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hdu.dwh.enums.Hierachy;

import lombok.Data;

@Data
@TableName("`filter_table`")
public class Filter {
    private Integer id;
    private String field;
    private String operator;
    private String value;
    private Integer relatedId;
    private Hierachy hierachy; 

    public Filter() {}
    public Filter(Hierachy hierachy, Integer relatedId, String field, String operator, String value) {
        this.hierachy = hierachy;
        this.relatedId = relatedId;
        this.field = field;
        this.operator = operator;
        this.value = value;
    }

    public Filter(String field, String operator, String value) {
        this.field = field;
        this.operator = operator;
        this.value = value;
    }
}
